﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Xml.Serialization;

namespace myMap
{
    class myFucntion
    {
        public void Run()
        {
            // Console.WriteLine("Hello");

            Network network = new Network();


            //network.Create(2, 2);
            //network.WriteInter("inters.xml");
            //network.WriteRoads("roads.xml");


            // 读入XML，建立对象
            network.ReadInter("inters.xml");
            network.ReadRoads("roads.xml");


            // 建立对象之间的联系
            network.Connect();




            Console.WriteLine();


            Console.WriteLine();

        }
    }
}
